import axios from 'axios'

class Axios {
    instance
    constructor (config) {
        this.instance = axios.create(config)
    }

    get (url, data) {
        return this.instance.get(
            url,
            { ...data }
        )
    }

    post (url, data) {
        return this.instance.post(
            url,
            { ...data }
        )
    }
}


export default Axios
